<HTML><HEAD><TITLE>remove_smallest(+Map0, ?Key, ?Value, -Map)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(m_map)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>remove_smallest(+Map0, ?Key, ?Value, -Map)</H1>
Remove the smallest key and its corresponding value from a map.
<DL>
<DT><EM>Map0</EM></DT>
<DD>A map
</DD>
<DT><EM>Key</EM></DT>
<DD>The key removed
</DD>
<DT><EM>Value</EM></DT>
<DD>The value corresponding to Key
</DD>
<DT><EM>Map</EM></DT>
<DD>The map after removal
</DD>
</DL>
<H2>Description</H2>
	<P>
	Removes the smallest key in the map Map0 (resulting in the
	map Map), and attempts to unify the removed key with Key and
	its corresponding value with Value.
	</P>
	<P>
	This predicate should only be called with maps created by other
	predicates from the map module.
	</P>
	
<H3>Fail Conditions</H3>
Fails if Map0 is empty or if Key and Value do not unify with the key and value removed.
<H3>Resatisfiable</H3>
no
<H2>See Also</H2>
<A HREF="../../lib_public/m_map/remove-4.html">remove / 4</A>
</BODY></HTML>
